﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WTwitter.Model.Framework;

namespace WTwitter.Model.SearchTwitter {
	public class SearchTwitterUser : IUser {
		private Status _item;
		public SearchTwitterUser(Status item) {
			_item = item;
		}

		#region IUser メンバ

		public long? Id {
			get { return _item.FromUserId; }
		}

		public string ScreenName {
			get { return _item.UserName; }
		}

		public string Name {
			get { return ""; }
		}

		public string UserUrl {
			get { return @"http://www.twitter.com/" + ScreenName; }
		}

		public string Description {
			get { return ""; }
		}

		public string ProfileImageUrl {
			get { return _item.ProfileImageUrl; }
		}

		public List<long> FollowingIds {
			get { throw new NotImplementedException(); }
		}

		public void LoadFollowingIds(WTwitter.Model.UserData.AuthInfo info) {
			throw new NotImplementedException();
		}

		public List<long> FollowersIds {
			get { throw new NotImplementedException(); }
		}

		public void LoadFollowersIds(WTwitter.Model.UserData.AuthInfo info) {
			throw new NotImplementedException();
		}

		public bool IsFriend {
			get { throw new NotImplementedException(); }
		}

		public bool IsFollowing {
			get { throw new NotImplementedException(); }
		}

		public bool IsFollowed {
			get { throw new NotImplementedException(); }
		}


		#endregion

		#region IEquatable<IUser> メンバ

		public bool Equals(IUser other) {
			return this.ScreenName.Equals(other.ScreenName);
		}

		#endregion
	}
}
